package com.blue.prepose.controller;

import com.blue.prepose.entity.PaymentPay;
import com.blue.prepose.service.PaymentPayService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 支付表(PaymentPay)表控制层
 *
 * @author xiaoyiming
 * @since 2020-05-08 23:29:15
 */
@RestController
@RequestMapping("paymentPay")
public class PaymentPayController {
    /**
     * 服务对象
     */
    @Resource
    private PaymentPayService paymentPayService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PaymentPay selectOne(Long id) {
        return this.paymentPayService.queryById(id);
    }

}